#include "widget.h"
#include <QApplication>
#include <QProcess>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    Widget w;
    w.show();
    int code = a.exec();
    if(code == 122){
        QProcess::startDetached(qApp->applicationFilePath());
        return 0;
    }

    return code;
}
